package summer_vacation.zengguangchuan;

/**作业21
 * Created by lenovo0 on 2015/8/25.
 */
public class Assignment_4 {
    public static void main(String[] args){
        int a,b,c;
        for(int n=100;n<1000;n++){
            a=n/100;
            b=(n-a*100)/10;
            c=n%10;
         if (n==a*a*a+b*b*b+c*c*c){
             System.out.println(n+ "是水仙花数");
         }
        }
    }
}
